namespace ASPNET.StarterKit.IssueTracker
{
    using ASPNET.StarterKit.IssueTracker.BusinessLogicLayer;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class IssueDetail : Page
    {
        [AccessedThroughProperty("btnCancel")]
        private Button _btnCancel;
        [AccessedThroughProperty("btnDelete")]
        private Button _btnDelete;
        [AccessedThroughProperty("btnDone")]
        private Button _btnDone;
        [AccessedThroughProperty("btnSave")]
        private Button _btnSave;
        [AccessedThroughProperty("ctlIssueTabs")]
        private IssueTabs _ctlIssueTabs;
        [AccessedThroughProperty("dropAssigned")]
        private PickSingleUser _dropAssigned;
        [AccessedThroughProperty("dropCats")]
        private PickCategory _dropCats;
        [AccessedThroughProperty("dropCreator")]
        private PickSingleUser _dropCreator;
        [AccessedThroughProperty("dropOwned")]
        private PickSingleUser _dropOwned;
        [AccessedThroughProperty("dropPriority")]
        private PickPriority _dropPriority;
        [AccessedThroughProperty("dropStatus")]
        private PickStatus _dropStatus;
        [AccessedThroughProperty("Drpappby")]
        private DropDownList _Drpappby;
        [AccessedThroughProperty("Drpbusnat")]
        private DropDownList _Drpbusnat;
        [AccessedThroughProperty("Drpbusown")]
        private DropDownList _Drpbusown;
        [AccessedThroughProperty("Drpdwjb")]
        private DropDownList _Drpdwjb;
        [AccessedThroughProperty("Drpdwlb")]
        private DropDownList _Drpdwlb;
        [AccessedThroughProperty("Drpinput")]
        private DropDownList _Drpinput;
        [AccessedThroughProperty("Drpleibie")]
        private DropDownList _Drpleibie;
        [AccessedThroughProperty("Drpoffown")]
        private DropDownList _Drpoffown;
        [AccessedThroughProperty("Drpxingzhi")]
        private DropDownList _Drpxingzhi;
        [AccessedThroughProperty("lblacrcode")]
        private Label _lblacrcode;
        [AccessedThroughProperty("lblassign")]
        private Label _lblassign;
        [AccessedThroughProperty("lblCreator")]
        private Label _lblCreator;
        [AccessedThroughProperty("lblDateCreated")]
        private Label _lblDateCreated;
        [AccessedThroughProperty("lblError")]
        private Label _lblError;
        [AccessedThroughProperty("lblfzr")]
        private Label _lblfzr;
        [AccessedThroughProperty("lblinput")]
        private Label _lblinput;
        [AccessedThroughProperty("lblIssueId")]
        private Label _lblIssueId;
        [AccessedThroughProperty("lbljb")]
        private Label _lbljb;
        [AccessedThroughProperty("lbllb")]
        private Label _lbllb;
        [AccessedThroughProperty("lblown")]
        private Label _lblown;
        [AccessedThroughProperty("lblstaus")]
        private Label _lblstaus;
        [AccessedThroughProperty("lblzs")]
        private Label _lblzs;
        [AccessedThroughProperty("RequiredFieldValidator1")]
        private RequiredFieldValidator _RequiredFieldValidator1;
        [AccessedThroughProperty("Requiredfieldvalidator2")]
        private RequiredFieldValidator _Requiredfieldvalidator2;
        [AccessedThroughProperty("txtacrcode")]
        private TextBox _txtacrcode;
        [AccessedThroughProperty("txtadocol")]
        private TextBox _txtadocol;
        [AccessedThroughProperty("txtadopay")]
        private TextBox _txtadopay;
        [AccessedThroughProperty("txtadoter")]
        private TextBox _txtadoter;
        [AccessedThroughProperty("txtappcre")]
        private TextBox _txtappcre;
        [AccessedThroughProperty("Txtappra")]
        private TextBox _Txtappra;
        [AccessedThroughProperty("Txtbusadd")]
        private TextBox _Txtbusadd;
        [AccessedThroughProperty("Txtbusper")]
        private TextBox _Txtbusper;
        [AccessedThroughProperty("Txtbussca")]
        private TextBox _Txtbussca;
        [AccessedThroughProperty("Txtcer")]
        private TextBox _Txtcer;
        [AccessedThroughProperty("Txtcorrep")]
        private TextBox _Txtcorrep;
        [AccessedThroughProperty("txtcurrat")]
        private TextBox _txtcurrat;
        [AccessedThroughProperty("Txtdisare")]
        private TextBox _Txtdisare;
        [AccessedThroughProperty("Txtenname")]
        private TextBox _Txtenname;
        [AccessedThroughProperty("Txtfax")]
        private TextBox _Txtfax;
        [AccessedThroughProperty("Txtfoudat")]
        private TextBox _Txtfoudat;
        [AccessedThroughProperty("Txtfzr")]
        private TextBox _Txtfzr;
        [AccessedThroughProperty("txtgropro")]
        private TextBox _txtgropro;
        [AccessedThroughProperty("Txthabpay")]
        private TextBox _Txthabpay;
        [AccessedThroughProperty("txtinvsal")]
        private TextBox _txtinvsal;
        [AccessedThroughProperty("txtliaequ")]
        private TextBox _txtliaequ;
        [AccessedThroughProperty("Txtmajbus")]
        private TextBox _Txtmajbus;
        [AccessedThroughProperty("Txtmancom")]
        private TextBox _Txtmancom;
        [AccessedThroughProperty("Txtmanname")]
        private TextBox _Txtmanname;
        [AccessedThroughProperty("Txtmanper")]
        private TextBox _Txtmanper;
        [AccessedThroughProperty("Txtmanpos")]
        private TextBox _Txtmanpos;
        [AccessedThroughProperty("txtnetfix")]
        private TextBox _txtnetfix;
        [AccessedThroughProperty("Txtoffadd")]
        private TextBox _Txtoffadd;
        [AccessedThroughProperty("txtopecap")]
        private TextBox _txtopecap;
        [AccessedThroughProperty("txtopecos")]
        private TextBox _txtopecos;
        [AccessedThroughProperty("Txtphone")]
        private TextBox _Txtphone;
        [AccessedThroughProperty("txtprofitability")]
        private TextBox _txtprofitability;
        [AccessedThroughProperty("Txtprotyp")]
        private TextBox _Txtprotyp;
        [AccessedThroughProperty("txtpurmer")]
        private TextBox _txtpurmer;
        [AccessedThroughProperty("txtquirat")]
        private TextBox _txtquirat;
        [AccessedThroughProperty("Txtregcap")]
        private TextBox _Txtregcap;
        [AccessedThroughProperty("Txtregnum")]
        private TextBox _Txtregnum;
        [AccessedThroughProperty("Txtregsit")]
        private TextBox _Txtregsit;
        [AccessedThroughProperty("txtsalper")]
        private TextBox _txtsalper;
        [AccessedThroughProperty("txtsuploc")]
        private TextBox _txtsuploc;
        [AccessedThroughProperty("txtTitle")]
        private TextBox _txtTitle;
        [AccessedThroughProperty("Txttotsta")]
        private TextBox _Txttotsta;
        [AccessedThroughProperty("txttottur")]
        private TextBox _txttottur;
        [AccessedThroughProperty("Txtwebsite")]
        private TextBox _Txtwebsite;
        [AccessedThroughProperty("Txtzipcod")]
        private TextBox _Txtzipcod;
        [AccessedThroughProperty("Txtzs")]
        private TextBox _Txtzs;
        [AccessedThroughProperty("txtzscore")]
        private TextBox _txtzscore;
        private object designerPlaceholderDeclaration;

        public IssueDetail()
        {
            base.Init += new EventHandler(this.Page_Init);
            base.Load += new EventHandler(this.Page_Load);
            base.PreRender += new EventHandler(this.Page_PreRender);
        }

        public void BindOptions()
        {
            this.dropCats.DataSource = new CategoryTree().GetCategoryTreeByProjectId(this.ProjectId);
            this.dropCats.DataBind();
            ITUserCollection colUsers = ITUser.GetUsersByProjectId(this.ProjectId);
            this.dropAssigned.DataSource = colUsers;
            this.dropAssigned.DataBind();
            this.dropOwned.DataSource = colUsers;
            this.dropOwned.DataBind();
            this.dropStatus.DataSource = Status.GetStatusByProjectId(this.ProjectId);
            this.dropStatus.DataBind();
            this.dropPriority.DataSource = Priority.GetPrioritiesByProjectId(this.ProjectId);
            this.dropPriority.DataBind();
            this.lblDateCreated.Text = DateTime.Now.ToString("f");
        }

        public void BindValues()
        {
            Issue currentIssue = Issue.GetIssueById(this.IssueId);
            this.ProjectId = currentIssue.ProjectId;
            CustomFieldCollection CustomFieldPro = CustomField.GetCustomFieldsByIssueId(this.ProjectId);
            CustomFieldCollection CustomFieldIss = CustomField.GetCustomFieldsByIssueId(this.IssueId);
            this.BindOptions();
            this.txtTitle.Text = currentIssue.Title;
            this.txtacrcode.Text = StringType.FromInteger(currentIssue.MilestoneId);
            if (this.IssueId == 0)
            {
                this.Txtregsit.Text = CustomFieldPro[0].Value;
                this.Txtregnum.Text = CustomFieldPro[2].Value;
                this.Txtzipcod.Text = CustomFieldPro[3].Value;
                this.Txtwebsite.Text = CustomFieldPro[4].Value;
                this.Txtfax.Text = CustomFieldPro[5].Value;
                this.Txtphone.Text = CustomFieldPro[6].Value;
                this.Txtenname.Text = CustomFieldPro[7].Value;
                this.Txtfzr.Text = CustomFieldPro[8].Value;
                this.Drpdwlb.SelectedValue = CustomFieldPro[9].Value;
                this.Txtmajbus.Text = CustomFieldPro[10].Value;
                this.Txtfoudat.Text = CustomFieldPro[11].Value;
                this.Txtcorrep.Text = CustomFieldPro[12].Value;
                this.Txttotsta.Text = CustomFieldPro[13].Value;
                this.Drpbusnat.SelectedValue = CustomFieldPro[14].Value;
                this.Txtregcap.Text = CustomFieldPro[15].Value;
                this.Drpdwjb.SelectedValue = CustomFieldPro[0x10].Value;
                this.Txtzs.Text = CustomFieldPro[0x11].Value;
                this.Txtbussca.Text = CustomFieldPro[0x12].Value;
                this.Txtbusper.Text = CustomFieldPro[0x13].Value;
                this.Txtcer.Text = CustomFieldPro[20].Value;
                this.Txtbusadd.Text = CustomFieldPro[0x15].Value;
                this.Drpbusown.SelectedValue = CustomFieldPro[0x16].Value;
                this.Txtoffadd.Text = CustomFieldPro[0x17].Value;
                this.Drpoffown.SelectedValue = CustomFieldPro[0x18].Value;
                this.txtpurmer.Text = CustomFieldPro[0x19].Value;
                this.txtsuploc.Text = CustomFieldPro[0x1a].Value;
                this.Txthabpay.Text = CustomFieldPro[0x1b].Value;
                this.txtadopay.Text = CustomFieldPro[0x1c].Value;
                this.Txtprotyp.Text = CustomFieldPro[0x1d].Value;
                this.Txtdisare.Text = CustomFieldPro[30].Value;
                this.txtadoter.Text = CustomFieldPro[0x1f].Value;
                this.txtadocol.Text = CustomFieldPro[0x20].Value;
                this.Txtmanname.Text = CustomFieldPro[0x21].Value;
                this.Txtmanper.Text = CustomFieldPro[0x22].Value;
                this.Txtmancom.Text = CustomFieldPro[0x23].Value;
                this.Txtmanpos.Text = CustomFieldPro[0x24].Value;
                this.txtcurrat.Text = CustomFieldPro[0x25].Value;
                this.txtquirat.Text = CustomFieldPro[0x26].Value;
                this.txtinvsal.Text = CustomFieldPro[0x27].Value;
                this.txtopecap.Text = CustomFieldPro[40].Value;
                this.txttottur.Text = CustomFieldPro[0x29].Value;
                this.txtgropro.Text = CustomFieldPro[0x2a].Value;
                this.txtprofitability.Text = CustomFieldPro[0x2b].Value;
                this.txtopecos.Text = CustomFieldPro[0x2c].Value;
                this.txtliaequ.Text = CustomFieldPro[0x2d].Value;
                this.txtnetfix.Text = CustomFieldPro[0x2e].Value;
                this.txtzscore.Text = CustomFieldPro[0x2f].Value;
                this.txtappcre.Text = CustomFieldPro[0x30].Value;
                this.txtsalper.Text = CustomFieldPro[0x31].Value;
                this.Drpappby.SelectedValue = CustomFieldPro[50].Value;
                this.Drpleibie.SelectedValue = CustomFieldPro[0x33].Value;
                this.Drpxingzhi.SelectedValue = CustomFieldPro[0x34].Value;
                this.Txtappra.Text = CustomFieldPro[0x35].Value;
            }
            else
            {
                this.Txtregsit.Text = CustomFieldIss[0].Value;
                this.Txtregnum.Text = CustomFieldIss[2].Value;
                this.Txtzipcod.Text = CustomFieldIss[3].Value;
                this.Txtwebsite.Text = CustomFieldIss[4].Value;
                this.Txtfax.Text = CustomFieldIss[5].Value;
                this.Txtphone.Text = CustomFieldIss[6].Value;
                this.Txtenname.Text = CustomFieldIss[7].Value;
                this.Txtfzr.Text = CustomFieldIss[8].Value;
                this.Drpdwlb.SelectedValue = CustomFieldIss[9].Value;
                this.Txtmajbus.Text = CustomFieldIss[10].Value;
                this.Txtfoudat.Text = CustomFieldIss[11].Value;
                this.Txtcorrep.Text = CustomFieldIss[12].Value;
                this.Txttotsta.Text = CustomFieldIss[13].Value;
                this.Drpbusnat.SelectedValue = CustomFieldIss[14].Value;
                this.Txtregcap.Text = CustomFieldIss[15].Value;
                this.Drpdwjb.SelectedValue = CustomFieldIss[0x10].Value;
                this.Txtzs.Text = CustomFieldIss[0x11].Value;
                this.Txtbussca.Text = CustomFieldIss[0x12].Value;
                this.Txtbusper.Text = CustomFieldIss[0x13].Value;
                this.Txtcer.Text = CustomFieldIss[20].Value;
                this.Txtbusadd.Text = CustomFieldIss[0x15].Value;
                this.Drpbusown.SelectedValue = CustomFieldIss[0x16].Value;
                this.Txtoffadd.Text = CustomFieldIss[0x17].Value;
                this.Drpoffown.SelectedValue = CustomFieldIss[0x18].Value;
                this.txtpurmer.Text = CustomFieldIss[0x19].Value;
                this.txtsuploc.Text = CustomFieldIss[0x1a].Value;
                this.Txthabpay.Text = CustomFieldIss[0x1b].Value;
                this.txtadopay.Text = CustomFieldIss[0x1c].Value;
                this.Txtprotyp.Text = CustomFieldIss[0x1d].Value;
                this.Txtdisare.Text = CustomFieldIss[30].Value;
                this.txtadoter.Text = CustomFieldIss[0x1f].Value;
                this.txtadocol.Text = CustomFieldIss[0x20].Value;
                this.Txtmanname.Text = CustomFieldIss[0x21].Value;
                this.Txtmanper.Text = CustomFieldIss[0x22].Value;
                this.Txtmancom.Text = CustomFieldIss[0x23].Value;
                this.Txtmanpos.Text = CustomFieldIss[0x24].Value;
                this.txtcurrat.Text = CustomFieldIss[0x25].Value;
                this.txtquirat.Text = CustomFieldIss[0x26].Value;
                this.txtinvsal.Text = CustomFieldIss[0x27].Value;
                this.txtopecap.Text = CustomFieldIss[40].Value;
                this.txttottur.Text = CustomFieldIss[0x29].Value;
                this.txtgropro.Text = CustomFieldIss[0x2a].Value;
                this.txtprofitability.Text = CustomFieldIss[0x2b].Value;
                this.txtopecos.Text = CustomFieldIss[0x2c].Value;
                this.txtliaequ.Text = CustomFieldIss[0x2d].Value;
                this.txtnetfix.Text = CustomFieldIss[0x2e].Value;
                this.txtzscore.Text = CustomFieldIss[0x2f].Value;
                this.txtappcre.Text = CustomFieldIss[0x30].Value;
                this.txtsalper.Text = CustomFieldIss[0x31].Value;
                this.Drpappby.SelectedValue = CustomFieldIss[50].Value;
                this.Drpleibie.SelectedValue = CustomFieldIss[0x33].Value;
                this.Drpxingzhi.SelectedValue = CustomFieldIss[0x34].Value;
                this.Txtappra.Text = CustomFieldIss[0x35].Value;
            }
            this.dropCats.SelectedValue = currentIssue.CategoryId;
            this.dropAssigned.SelectedValue = currentIssue.AssignedId;
            this.dropOwned.SelectedValue = currentIssue.OwnerId;
            this.dropStatus.SelectedValue = currentIssue.StatusId;
            this.dropPriority.SelectedValue = currentIssue.PriorityId;
            this.lblCreator.Text = currentIssue.CreatorDisplayName;
            this.lblassign.Text = currentIssue.AssignedDisplayName;
            this.lblown.Text = currentIssue.OwnerDisplayName;
            this.lblstaus.Text = currentIssue.StatusName;
            if (StringType.StrCmp(currentIssue.StatusName, "none", false) == 0)
            {
                this.lblstaus.Text = "等待财务审批";
            }
            this.lblacrcode.Text = StringType.FromInteger(currentIssue.MilestoneId);
            if (currentIssue.MilestoneId == 0)
            {
                this.lblacrcode.Text = "无";
            }
            this.lblDateCreated.Text = currentIssue.DateCreated.ToString("f");
        }

        public void btnDoneClick(object s, EventArgs e)
        {
            if (this.Page.IsValid & this.SaveIssue())
            {
                this.Response.Redirect("~/Issues/IssueList.aspx?pid=" + this.ProjectId.ToString());
            }
        }

        public void btnSave_Click(object sender, EventArgs e)
        {
            this.btnDone.Visible = true;
            this.btnSave.Visible = false;
            this.Txtregsit.ReadOnly = false;
            this.Txtregnum.ReadOnly = false;
            this.Txtzipcod.ReadOnly = false;
            this.Txtwebsite.ReadOnly = false;
            this.Txtfax.ReadOnly = false;
            this.Txtphone.ReadOnly = false;
            this.Txtenname.ReadOnly = false;
            this.Txtfzr.ReadOnly = false;
            this.Drpdwlb.Enabled = true;
            this.Txtmajbus.ReadOnly = false;
            this.Txtfoudat.ReadOnly = false;
            this.Txtcorrep.ReadOnly = false;
            this.Txttotsta.ReadOnly = false;
            this.Drpbusnat.Enabled = true;
            this.Txtregcap.ReadOnly = false;
            this.Drpdwjb.Enabled = true;
            this.Txtzs.ReadOnly = false;
            this.Txtbussca.ReadOnly = false;
            this.Txtbusper.ReadOnly = false;
            this.Txtcer.ReadOnly = false;
            this.Txtbusadd.ReadOnly = false;
            this.Drpbusown.Enabled = true;
            this.Txtoffadd.ReadOnly = false;
            this.Drpoffown.Enabled = true;
            this.txtpurmer.ReadOnly = false;
            this.txtsuploc.ReadOnly = false;
            this.Txthabpay.ReadOnly = false;
            this.txtadopay.ReadOnly = false;
            this.Txtprotyp.ReadOnly = false;
            this.Txtdisare.ReadOnly = false;
            this.txtadoter.ReadOnly = false;
            this.txtadocol.ReadOnly = false;
            this.Txtmanname.ReadOnly = false;
            this.Txtmanper.ReadOnly = false;
            this.Txtmancom.ReadOnly = false;
            this.Txtmanpos.ReadOnly = false;
            this.txtcurrat.ReadOnly = false;
            this.txtquirat.ReadOnly = false;
            this.txtinvsal.ReadOnly = false;
            this.txtopecap.ReadOnly = false;
            this.txttottur.ReadOnly = false;
            this.txtgropro.ReadOnly = false;
            this.txtprofitability.ReadOnly = false;
            this.txtopecos.ReadOnly = false;
            this.txtliaequ.ReadOnly = false;
            this.txtnetfix.ReadOnly = false;
            this.txtzscore.ReadOnly = false;
            this.txtappcre.ReadOnly = false;
            this.txtsalper.ReadOnly = false;
            this.Drpappby.Enabled = true;
            this.Drpleibie.Enabled = true;
            this.Drpxingzhi.Enabled = true;
            this.Txtappra.ReadOnly = false;
            this.txtTitle.ReadOnly = false;
            this.dropCats.Enabled = true;
            this.dropPriority.Enabled = true;
        }

        public void btnSaveClick(object s, EventArgs e)
        {
        }

        public void CancelButtonClick(object s, EventArgs e)
        {
            this.Response.Redirect("~/Issues/IssueList.aspx?pid=" + this.ProjectId.ToString());
        }

        public void DeleteButtonClick(object s, EventArgs e)
        {
            Issue.DeleteIssue(this.IssueId);
            this.Response.Redirect("~/Issues/IssueList.aspx?pid=" + this.ProjectId.ToString());
        }

        private void Drpinput_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (StringType.StrCmp(this.Drpinput.SelectedValue, "党政军", false) == 0)
            {
                this.lblfzr.Visible = true;
                this.lblzs.Visible = true;
                this.Txtfzr.Visible = true;
                this.Txtzs.Visible = true;
                this.lbllb.Visible = true;
                this.Drpdwlb.Visible = true;
                this.lbljb.Visible = true;
                this.Drpdwjb.Visible = true;
                this.Drpleibie.Visible = false;
                this.Drpxingzhi.Visible = false;
                this.Drpbusnat.Visible = false;
                this.Txtbussca.Visible = false;
                this.Txtbusper.Visible = false;
                this.Txtcer.Visible = false;
                this.Txtregcap.Visible = false;
                this.Txtmajbus.Visible = false;
            }
            if (StringType.StrCmp(this.Drpinput.SelectedValue, "普通客户", false) == 0)
            {
                this.Drpleibie.Visible = true;
                this.Drpxingzhi.Visible = true;
                this.Drpbusnat.Visible = true;
                this.Txtbussca.Visible = true;
                this.Txtbusper.Visible = true;
                this.Txtcer.Visible = true;
                this.Txtregcap.Visible = true;
                this.Txtmajbus.Visible = true;
                this.lblfzr.Visible = false;
                this.lblzs.Visible = false;
                this.Txtfzr.Visible = false;
                this.Txtzs.Visible = false;
                this.lbllb.Visible = false;
                this.Drpdwlb.Visible = false;
                this.lbljb.Visible = false;
                this.Drpdwjb.Visible = false;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
        }

        private void Page_Init(object sender, EventArgs e)
        {
            this.InitializeComponent();
        }

        private void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                if (this.Request.QueryString["pid"] != null)
                {
                    this.ProjectId = int.Parse(this.Request.QueryString["pid"]);
                }
                if (this.Request.QueryString["id"] != null)
                {
                    this.IssueId = int.Parse(this.Request.QueryString["id"]);
                }
                if ((this.ProjectId == 0) & (this.IssueId == 0))
                {
                    this.Response.Redirect("~/Issues/IssueList.aspx");
                }
                if (this.IssueId == 0)
                {
                    this.btnSave.Visible = false;
                    this.BindOptions();
                }
                else
                {
                    this.lblinput.Visible = false;
                    this.Drpinput.Visible = false;
                    this.btnDone.Visible = false;
                    this.Txtregsit.ReadOnly = true;
                    this.Txtregnum.ReadOnly = true;
                    this.Txtzipcod.ReadOnly = true;
                    this.Txtwebsite.ReadOnly = true;
                    this.Txtfax.ReadOnly = true;
                    this.Txtphone.ReadOnly = true;
                    this.Txtenname.ReadOnly = true;
                    this.Txtfzr.ReadOnly = true;
                    this.Drpdwlb.Enabled = false;
                    this.Txtmajbus.ReadOnly = true;
                    this.Txtfoudat.ReadOnly = true;
                    this.Txtcorrep.ReadOnly = true;
                    this.Txttotsta.ReadOnly = true;
                    this.Drpbusnat.Enabled = false;
                    this.Txtregcap.ReadOnly = true;
                    this.Drpdwjb.Enabled = false;
                    this.Txtzs.ReadOnly = true;
                    this.Txtbussca.ReadOnly = true;
                    this.Txtbusper.ReadOnly = true;
                    this.Txtcer.ReadOnly = true;
                    this.Txtbusadd.ReadOnly = true;
                    this.Drpbusown.Enabled = false;
                    this.Txtoffadd.ReadOnly = true;
                    this.Drpoffown.Enabled = false;
                    this.txtpurmer.ReadOnly = true;
                    this.txtsuploc.ReadOnly = true;
                    this.Txthabpay.ReadOnly = true;
                    this.txtadopay.ReadOnly = true;
                    this.Txtprotyp.ReadOnly = true;
                    this.Txtdisare.ReadOnly = true;
                    this.txtadoter.ReadOnly = true;
                    this.txtadocol.ReadOnly = true;
                    this.Txtmanname.ReadOnly = true;
                    this.Txtmanper.ReadOnly = true;
                    this.Txtmancom.ReadOnly = true;
                    this.Txtmanpos.ReadOnly = true;
                    this.txtcurrat.ReadOnly = true;
                    this.txtquirat.ReadOnly = true;
                    this.txtinvsal.ReadOnly = true;
                    this.txtopecap.ReadOnly = true;
                    this.txttottur.ReadOnly = true;
                    this.txtgropro.ReadOnly = true;
                    this.txtprofitability.ReadOnly = true;
                    this.txtopecos.ReadOnly = true;
                    this.txtliaequ.ReadOnly = true;
                    this.txtnetfix.ReadOnly = true;
                    this.txtzscore.ReadOnly = true;
                    this.txtappcre.ReadOnly = true;
                    this.txtsalper.ReadOnly = true;
                    this.Drpappby.Enabled = false;
                    this.Drpleibie.Enabled = false;
                    this.Drpxingzhi.Enabled = false;
                    this.Txtappra.ReadOnly = true;
                    this.txtTitle.ReadOnly = true;
                    this.dropCats.Enabled = false;
                    this.dropPriority.Enabled = false;
                    this.BindValues();
                }
            }
            this.dropOwned.Visible = false;
            this.dropStatus.Visible = false;
            this.dropAssigned.Visible = false;
            this.txtacrcode.Visible = false;
            this.ctlIssueTabs.IssueId = this.IssueId;
            this.btnDelete.Attributes.Add("onclick", "return confirm('Are you sure you want to delete this issue?');");
        }

        private void Page_PreRender(object sender, EventArgs e)
        {
            if (this.IssueId != 0)
            {
                this.lblIssueId.Text = this.IssueId.ToString();
                this.ctlIssueTabs.Visible = true;
            }
            if (this.User.IsInRole("Project Manager"))
            {
                this.dropOwned.Visible = true;
                this.dropStatus.Visible = true;
                this.lblown.Visible = false;
                this.lblstaus.Visible = false;
                this.txtacrcode.Visible = true;
                this.lblacrcode.Visible = false;
            }
            if (this.User.IsInRole("Administrator"))
            {
                this.dropAssigned.Visible = true;
                this.txtacrcode.Visible = true;
                this.lblassign.Visible = false;
                this.lblacrcode.Visible = false;
            }
            if (this.User.IsInRole("Guest"))
            {
                this.btnSave.Enabled = false;
                this.btnDone.Enabled = false;
                this.btnCancel.Enabled = false;
                this.btnDelete.Enabled = false;
            }
        }

        public bool SaveIssue()
        {
            Issue newIssue = new Issue(this.IssueId, this.ProjectId, this.txtTitle.Text, this.dropCats.SelectedValue, IntegerType.FromString(this.txtacrcode.Text), this.dropPriority.SelectedValue, this.dropStatus.SelectedValue, this.dropAssigned.SelectedValue, this.dropOwned.SelectedValue, this.User.Identity.Name);
            CustomFieldCollection colcustom = new CustomFieldCollection();
            if (!newIssue.Save())
            {
                this.lblError.Text = "Could not save validate information";
                return false;
            }
            this.IssueId = newIssue.Id;
            colcustom.Add(new CustomField(4, this.Txtregsit.Text));
            colcustom.Add(new CustomField(6, this.Txtregnum.Text));
            colcustom.Add(new CustomField(7, this.Txtzipcod.Text));
            colcustom.Add(new CustomField(8, this.Txtwebsite.Text));
            colcustom.Add(new CustomField(9, this.Txtfax.Text));
            colcustom.Add(new CustomField(10, this.Txtphone.Text));
            colcustom.Add(new CustomField(11, this.Txtenname.Text));
            colcustom.Add(new CustomField(12, this.Txtfzr.Text));
            colcustom.Add(new CustomField(13, this.Drpdwlb.SelectedValue));
            colcustom.Add(new CustomField(14, this.Txtmajbus.Text));
            colcustom.Add(new CustomField(15, this.Txtfoudat.Text));
            colcustom.Add(new CustomField(0x10, this.Txtcorrep.Text));
            colcustom.Add(new CustomField(0x11, this.Txttotsta.Text));
            colcustom.Add(new CustomField(0x12, this.Drpbusnat.SelectedValue));
            colcustom.Add(new CustomField(0x13, this.Txtregcap.Text));
            colcustom.Add(new CustomField(20, this.Drpdwjb.SelectedValue));
            colcustom.Add(new CustomField(0x15, this.Txtzs.Text));
            colcustom.Add(new CustomField(0x16, this.Txtbussca.Text));
            colcustom.Add(new CustomField(0x17, this.Txtbusper.Text));
            colcustom.Add(new CustomField(0x18, this.Txtcer.Text));
            colcustom.Add(new CustomField(0x19, this.Txtbusadd.Text));
            colcustom.Add(new CustomField(0x1a, this.Drpbusown.SelectedValue));
            colcustom.Add(new CustomField(0x1b, this.Txtoffadd.Text));
            colcustom.Add(new CustomField(0x1c, this.Drpoffown.SelectedValue));
            colcustom.Add(new CustomField(0x1d, this.txtpurmer.Text));
            colcustom.Add(new CustomField(30, this.txtsuploc.Text));
            colcustom.Add(new CustomField(0x1f, this.Txthabpay.Text));
            colcustom.Add(new CustomField(0x20, this.txtadopay.Text));
            colcustom.Add(new CustomField(0x21, this.Txtprotyp.Text));
            colcustom.Add(new CustomField(0x22, this.Txtdisare.Text));
            colcustom.Add(new CustomField(0x23, this.txtadoter.Text));
            colcustom.Add(new CustomField(0x24, this.txtadocol.Text));
            colcustom.Add(new CustomField(0x25, this.Txtmanname.Text));
            colcustom.Add(new CustomField(0x26, this.Txtmanper.Text));
            colcustom.Add(new CustomField(0x27, this.Txtmancom.Text));
            colcustom.Add(new CustomField(40, this.Txtmanpos.Text));
            colcustom.Add(new CustomField(0x2b, this.txtcurrat.Text));
            colcustom.Add(new CustomField(0x2c, this.txtquirat.Text));
            colcustom.Add(new CustomField(0x2d, this.txtinvsal.Text));
            colcustom.Add(new CustomField(0x2e, this.txtopecap.Text));
            colcustom.Add(new CustomField(0x2f, this.txttottur.Text));
            colcustom.Add(new CustomField(0x30, this.txtgropro.Text));
            colcustom.Add(new CustomField(0x31, this.txtprofitability.Text));
            colcustom.Add(new CustomField(50, this.txtopecos.Text));
            colcustom.Add(new CustomField(0x33, this.txtliaequ.Text));
            colcustom.Add(new CustomField(0x34, this.txtnetfix.Text));
            colcustom.Add(new CustomField(0x35, this.txtzscore.Text));
            colcustom.Add(new CustomField(0x36, this.txtappcre.Text));
            colcustom.Add(new CustomField(0x37, this.txtsalper.Text));
            colcustom.Add(new CustomField(0x38, this.Drpappby.SelectedValue));
            colcustom.Add(new CustomField(0x39, this.Drpleibie.SelectedValue));
            colcustom.Add(new CustomField(0x3a, this.Drpxingzhi.SelectedValue));
            colcustom.Add(new CustomField(0x3b, this.Txtappra.Text));
            if (!CustomField.SaveCustomFieldValues(this.IssueId, colcustom))
            {
                this.lblError.Text = "Could not save basic information";
                return false;
            }
            return true;
        }

        protected virtual Button btnCancel
        {
            get
            {
                return this._btnCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._btnCancel != null)
                {
                    this._btnCancel.Click -= new EventHandler(this.CancelButtonClick);
                }
                this._btnCancel = value;
                if (this._btnCancel != null)
                {
                    this._btnCancel.Click += new EventHandler(this.CancelButtonClick);
                }
            }
        }

        protected virtual Button btnDelete
        {
            get
            {
                return this._btnDelete;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._btnDelete != null)
                {
                    this._btnDelete.Click -= new EventHandler(this.DeleteButtonClick);
                }
                this._btnDelete = value;
                if (this._btnDelete != null)
                {
                    this._btnDelete.Click += new EventHandler(this.DeleteButtonClick);
                }
            }
        }

        protected virtual Button btnDone
        {
            get
            {
                return this._btnDone;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._btnDone != null)
                {
                    this._btnDone.Click -= new EventHandler(this.btnDoneClick);
                }
                this._btnDone = value;
                if (this._btnDone != null)
                {
                    this._btnDone.Click += new EventHandler(this.btnDoneClick);
                }
            }
        }

        protected virtual Button btnSave
        {
            get
            {
                return this._btnSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._btnSave != null)
                {
                    this._btnSave.Click -= new EventHandler(this.btnSave_Click);
                }
                this._btnSave = value;
                if (this._btnSave != null)
                {
                    this._btnSave.Click += new EventHandler(this.btnSave_Click);
                }
            }
        }

        protected virtual IssueTabs ctlIssueTabs
        {
            get
            {
                return this._ctlIssueTabs;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._ctlIssueTabs != null)
                {
                }
                this._ctlIssueTabs = value;
                if (this._ctlIssueTabs != null)
                {
                }
            }
        }

        protected virtual PickSingleUser dropAssigned
        {
            get
            {
                return this._dropAssigned;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._dropAssigned != null)
                {
                }
                this._dropAssigned = value;
                if (this._dropAssigned != null)
                {
                }
            }
        }

        protected virtual PickCategory dropCats
        {
            get
            {
                return this._dropCats;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._dropCats != null)
                {
                }
                this._dropCats = value;
                if (this._dropCats != null)
                {
                }
            }
        }

        protected virtual PickSingleUser dropCreator
        {
            get
            {
                return this._dropCreator;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._dropCreator != null)
                {
                }
                this._dropCreator = value;
                if (this._dropCreator != null)
                {
                }
            }
        }

        protected virtual PickSingleUser dropOwned
        {
            get
            {
                return this._dropOwned;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._dropOwned != null)
                {
                }
                this._dropOwned = value;
                if (this._dropOwned != null)
                {
                }
            }
        }

        protected virtual PickPriority dropPriority
        {
            get
            {
                return this._dropPriority;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._dropPriority != null)
                {
                }
                this._dropPriority = value;
                if (this._dropPriority != null)
                {
                }
            }
        }

        protected virtual PickStatus dropStatus
        {
            get
            {
                return this._dropStatus;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._dropStatus != null)
                {
                }
                this._dropStatus = value;
                if (this._dropStatus != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpappby
        {
            get
            {
                return this._Drpappby;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpappby != null)
                {
                }
                this._Drpappby = value;
                if (this._Drpappby != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpbusnat
        {
            get
            {
                return this._Drpbusnat;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpbusnat != null)
                {
                }
                this._Drpbusnat = value;
                if (this._Drpbusnat != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpbusown
        {
            get
            {
                return this._Drpbusown;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpbusown != null)
                {
                }
                this._Drpbusown = value;
                if (this._Drpbusown != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpdwjb
        {
            get
            {
                return this._Drpdwjb;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpdwjb != null)
                {
                }
                this._Drpdwjb = value;
                if (this._Drpdwjb != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpdwlb
        {
            get
            {
                return this._Drpdwlb;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpdwlb != null)
                {
                }
                this._Drpdwlb = value;
                if (this._Drpdwlb != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpinput
        {
            get
            {
                return this._Drpinput;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpinput != null)
                {
                    this._Drpinput.SelectedIndexChanged -= new EventHandler(this.Drpinput_SelectedIndexChanged);
                }
                this._Drpinput = value;
                if (this._Drpinput != null)
                {
                    this._Drpinput.SelectedIndexChanged += new EventHandler(this.Drpinput_SelectedIndexChanged);
                }
            }
        }

        protected virtual DropDownList Drpleibie
        {
            get
            {
                return this._Drpleibie;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpleibie != null)
                {
                }
                this._Drpleibie = value;
                if (this._Drpleibie != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpoffown
        {
            get
            {
                return this._Drpoffown;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpoffown != null)
                {
                }
                this._Drpoffown = value;
                if (this._Drpoffown != null)
                {
                }
            }
        }

        protected virtual DropDownList Drpxingzhi
        {
            get
            {
                return this._Drpxingzhi;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Drpxingzhi != null)
                {
                }
                this._Drpxingzhi = value;
                if (this._Drpxingzhi != null)
                {
                }
            }
        }

        public int IssueId
        {
            get
            {
                if (this.ViewState["IssueId"] == null)
                {
                    return 0;
                }
                return IntegerType.FromObject(this.ViewState["IssueId"]);
            }
            set
            {
                this.ViewState["IssueId"] = value;
            }
        }

        protected virtual Label lblacrcode
        {
            get
            {
                return this._lblacrcode;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblacrcode != null)
                {
                }
                this._lblacrcode = value;
                if (this._lblacrcode != null)
                {
                }
            }
        }

        protected virtual Label lblassign
        {
            get
            {
                return this._lblassign;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblassign != null)
                {
                }
                this._lblassign = value;
                if (this._lblassign != null)
                {
                }
            }
        }

        protected virtual Label lblCreator
        {
            get
            {
                return this._lblCreator;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblCreator != null)
                {
                }
                this._lblCreator = value;
                if (this._lblCreator != null)
                {
                }
            }
        }

        protected virtual Label lblDateCreated
        {
            get
            {
                return this._lblDateCreated;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblDateCreated != null)
                {
                }
                this._lblDateCreated = value;
                if (this._lblDateCreated != null)
                {
                }
            }
        }

        protected virtual Label lblError
        {
            get
            {
                return this._lblError;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblError != null)
                {
                }
                this._lblError = value;
                if (this._lblError != null)
                {
                }
            }
        }

        protected virtual Label lblfzr
        {
            get
            {
                return this._lblfzr;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblfzr != null)
                {
                }
                this._lblfzr = value;
                if (this._lblfzr != null)
                {
                }
            }
        }

        protected virtual Label lblinput
        {
            get
            {
                return this._lblinput;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblinput != null)
                {
                }
                this._lblinput = value;
                if (this._lblinput != null)
                {
                }
            }
        }

        protected virtual Label lblIssueId
        {
            get
            {
                return this._lblIssueId;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblIssueId != null)
                {
                }
                this._lblIssueId = value;
                if (this._lblIssueId != null)
                {
                }
            }
        }

        protected virtual Label lbljb
        {
            get
            {
                return this._lbljb;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lbljb != null)
                {
                }
                this._lbljb = value;
                if (this._lbljb != null)
                {
                }
            }
        }

        protected virtual Label lbllb
        {
            get
            {
                return this._lbllb;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lbllb != null)
                {
                }
                this._lbllb = value;
                if (this._lbllb != null)
                {
                }
            }
        }

        protected virtual Label lblown
        {
            get
            {
                return this._lblown;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblown != null)
                {
                }
                this._lblown = value;
                if (this._lblown != null)
                {
                }
            }
        }

        protected virtual Label lblstaus
        {
            get
            {
                return this._lblstaus;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblstaus != null)
                {
                }
                this._lblstaus = value;
                if (this._lblstaus != null)
                {
                }
            }
        }

        protected virtual Label lblzs
        {
            get
            {
                return this._lblzs;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lblzs != null)
                {
                }
                this._lblzs = value;
                if (this._lblzs != null)
                {
                }
            }
        }

        public int ProjectId
        {
            get
            {
                if (this.ViewState["ProjectId"] == null)
                {
                    return 0;
                }
                return IntegerType.FromObject(this.ViewState["ProjectId"]);
            }
            set
            {
                this.ViewState["ProjectId"] = value;
            }
        }

        protected virtual RequiredFieldValidator RequiredFieldValidator1
        {
            get
            {
                return this._RequiredFieldValidator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._RequiredFieldValidator1 != null)
                {
                }
                this._RequiredFieldValidator1 = value;
                if (this._RequiredFieldValidator1 != null)
                {
                }
            }
        }

        protected virtual RequiredFieldValidator Requiredfieldvalidator2
        {
            get
            {
                return this._Requiredfieldvalidator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Requiredfieldvalidator2 != null)
                {
                }
                this._Requiredfieldvalidator2 = value;
                if (this._Requiredfieldvalidator2 != null)
                {
                }
            }
        }

        protected virtual TextBox txtacrcode
        {
            get
            {
                return this._txtacrcode;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtacrcode != null)
                {
                }
                this._txtacrcode = value;
                if (this._txtacrcode != null)
                {
                }
            }
        }

        protected virtual TextBox txtadocol
        {
            get
            {
                return this._txtadocol;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtadocol != null)
                {
                }
                this._txtadocol = value;
                if (this._txtadocol != null)
                {
                }
            }
        }

        protected virtual TextBox txtadopay
        {
            get
            {
                return this._txtadopay;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtadopay != null)
                {
                }
                this._txtadopay = value;
                if (this._txtadopay != null)
                {
                }
            }
        }

        protected virtual TextBox txtadoter
        {
            get
            {
                return this._txtadoter;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtadoter != null)
                {
                }
                this._txtadoter = value;
                if (this._txtadoter != null)
                {
                }
            }
        }

        protected virtual TextBox txtappcre
        {
            get
            {
                return this._txtappcre;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtappcre != null)
                {
                }
                this._txtappcre = value;
                if (this._txtappcre != null)
                {
                }
            }
        }

        protected virtual TextBox Txtappra
        {
            get
            {
                return this._Txtappra;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtappra != null)
                {
                }
                this._Txtappra = value;
                if (this._Txtappra != null)
                {
                }
            }
        }

        protected virtual TextBox Txtbusadd
        {
            get
            {
                return this._Txtbusadd;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtbusadd != null)
                {
                }
                this._Txtbusadd = value;
                if (this._Txtbusadd != null)
                {
                }
            }
        }

        protected virtual TextBox Txtbusper
        {
            get
            {
                return this._Txtbusper;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtbusper != null)
                {
                }
                this._Txtbusper = value;
                if (this._Txtbusper != null)
                {
                }
            }
        }

        protected virtual TextBox Txtbussca
        {
            get
            {
                return this._Txtbussca;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtbussca != null)
                {
                }
                this._Txtbussca = value;
                if (this._Txtbussca != null)
                {
                }
            }
        }

        protected virtual TextBox Txtcer
        {
            get
            {
                return this._Txtcer;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtcer != null)
                {
                }
                this._Txtcer = value;
                if (this._Txtcer != null)
                {
                }
            }
        }

        protected virtual TextBox Txtcorrep
        {
            get
            {
                return this._Txtcorrep;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtcorrep != null)
                {
                }
                this._Txtcorrep = value;
                if (this._Txtcorrep != null)
                {
                }
            }
        }

        protected virtual TextBox txtcurrat
        {
            get
            {
                return this._txtcurrat;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtcurrat != null)
                {
                }
                this._txtcurrat = value;
                if (this._txtcurrat != null)
                {
                }
            }
        }

        protected virtual TextBox Txtdisare
        {
            get
            {
                return this._Txtdisare;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtdisare != null)
                {
                }
                this._Txtdisare = value;
                if (this._Txtdisare != null)
                {
                }
            }
        }

        protected virtual TextBox Txtenname
        {
            get
            {
                return this._Txtenname;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtenname != null)
                {
                }
                this._Txtenname = value;
                if (this._Txtenname != null)
                {
                }
            }
        }

        protected virtual TextBox Txtfax
        {
            get
            {
                return this._Txtfax;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtfax != null)
                {
                }
                this._Txtfax = value;
                if (this._Txtfax != null)
                {
                }
            }
        }

        protected virtual TextBox Txtfoudat
        {
            get
            {
                return this._Txtfoudat;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtfoudat != null)
                {
                }
                this._Txtfoudat = value;
                if (this._Txtfoudat != null)
                {
                }
            }
        }

        protected virtual TextBox Txtfzr
        {
            get
            {
                return this._Txtfzr;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtfzr != null)
                {
                }
                this._Txtfzr = value;
                if (this._Txtfzr != null)
                {
                }
            }
        }

        protected virtual TextBox txtgropro
        {
            get
            {
                return this._txtgropro;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtgropro != null)
                {
                }
                this._txtgropro = value;
                if (this._txtgropro != null)
                {
                }
            }
        }

        protected virtual TextBox Txthabpay
        {
            get
            {
                return this._Txthabpay;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txthabpay != null)
                {
                }
                this._Txthabpay = value;
                if (this._Txthabpay != null)
                {
                }
            }
        }

        protected virtual TextBox txtinvsal
        {
            get
            {
                return this._txtinvsal;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtinvsal != null)
                {
                }
                this._txtinvsal = value;
                if (this._txtinvsal != null)
                {
                }
            }
        }

        protected virtual TextBox txtliaequ
        {
            get
            {
                return this._txtliaequ;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtliaequ != null)
                {
                }
                this._txtliaequ = value;
                if (this._txtliaequ != null)
                {
                }
            }
        }

        protected virtual TextBox Txtmajbus
        {
            get
            {
                return this._Txtmajbus;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtmajbus != null)
                {
                }
                this._Txtmajbus = value;
                if (this._Txtmajbus != null)
                {
                }
            }
        }

        protected virtual TextBox Txtmancom
        {
            get
            {
                return this._Txtmancom;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtmancom != null)
                {
                }
                this._Txtmancom = value;
                if (this._Txtmancom != null)
                {
                }
            }
        }

        protected virtual TextBox Txtmanname
        {
            get
            {
                return this._Txtmanname;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtmanname != null)
                {
                }
                this._Txtmanname = value;
                if (this._Txtmanname != null)
                {
                }
            }
        }

        protected virtual TextBox Txtmanper
        {
            get
            {
                return this._Txtmanper;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtmanper != null)
                {
                }
                this._Txtmanper = value;
                if (this._Txtmanper != null)
                {
                }
            }
        }

        protected virtual TextBox Txtmanpos
        {
            get
            {
                return this._Txtmanpos;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtmanpos != null)
                {
                }
                this._Txtmanpos = value;
                if (this._Txtmanpos != null)
                {
                }
            }
        }

        protected virtual TextBox txtnetfix
        {
            get
            {
                return this._txtnetfix;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtnetfix != null)
                {
                }
                this._txtnetfix = value;
                if (this._txtnetfix != null)
                {
                }
            }
        }

        protected virtual TextBox Txtoffadd
        {
            get
            {
                return this._Txtoffadd;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtoffadd != null)
                {
                }
                this._Txtoffadd = value;
                if (this._Txtoffadd != null)
                {
                }
            }
        }

        protected virtual TextBox txtopecap
        {
            get
            {
                return this._txtopecap;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtopecap != null)
                {
                }
                this._txtopecap = value;
                if (this._txtopecap != null)
                {
                }
            }
        }

        protected virtual TextBox txtopecos
        {
            get
            {
                return this._txtopecos;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtopecos != null)
                {
                }
                this._txtopecos = value;
                if (this._txtopecos != null)
                {
                }
            }
        }

        protected virtual TextBox Txtphone
        {
            get
            {
                return this._Txtphone;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtphone != null)
                {
                }
                this._Txtphone = value;
                if (this._Txtphone != null)
                {
                }
            }
        }

        protected virtual TextBox txtprofitability
        {
            get
            {
                return this._txtprofitability;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtprofitability != null)
                {
                }
                this._txtprofitability = value;
                if (this._txtprofitability != null)
                {
                }
            }
        }

        protected virtual TextBox Txtprotyp
        {
            get
            {
                return this._Txtprotyp;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtprotyp != null)
                {
                }
                this._Txtprotyp = value;
                if (this._Txtprotyp != null)
                {
                }
            }
        }

        protected virtual TextBox txtpurmer
        {
            get
            {
                return this._txtpurmer;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtpurmer != null)
                {
                }
                this._txtpurmer = value;
                if (this._txtpurmer != null)
                {
                }
            }
        }

        protected virtual TextBox txtquirat
        {
            get
            {
                return this._txtquirat;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtquirat != null)
                {
                }
                this._txtquirat = value;
                if (this._txtquirat != null)
                {
                }
            }
        }

        protected virtual TextBox Txtregcap
        {
            get
            {
                return this._Txtregcap;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtregcap != null)
                {
                }
                this._Txtregcap = value;
                if (this._Txtregcap != null)
                {
                }
            }
        }

        protected virtual TextBox Txtregnum
        {
            get
            {
                return this._Txtregnum;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtregnum != null)
                {
                }
                this._Txtregnum = value;
                if (this._Txtregnum != null)
                {
                }
            }
        }

        protected virtual TextBox Txtregsit
        {
            get
            {
                return this._Txtregsit;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtregsit != null)
                {
                }
                this._Txtregsit = value;
                if (this._Txtregsit != null)
                {
                }
            }
        }

        protected virtual TextBox txtsalper
        {
            get
            {
                return this._txtsalper;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtsalper != null)
                {
                }
                this._txtsalper = value;
                if (this._txtsalper != null)
                {
                }
            }
        }

        protected virtual TextBox txtsuploc
        {
            get
            {
                return this._txtsuploc;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtsuploc != null)
                {
                }
                this._txtsuploc = value;
                if (this._txtsuploc != null)
                {
                }
            }
        }

        protected virtual TextBox txtTitle
        {
            get
            {
                return this._txtTitle;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtTitle != null)
                {
                }
                this._txtTitle = value;
                if (this._txtTitle != null)
                {
                }
            }
        }

        protected virtual TextBox Txttotsta
        {
            get
            {
                return this._Txttotsta;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txttotsta != null)
                {
                }
                this._Txttotsta = value;
                if (this._Txttotsta != null)
                {
                }
            }
        }

        protected virtual TextBox txttottur
        {
            get
            {
                return this._txttottur;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txttottur != null)
                {
                }
                this._txttottur = value;
                if (this._txttottur != null)
                {
                }
            }
        }

        protected virtual TextBox Txtwebsite
        {
            get
            {
                return this._Txtwebsite;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtwebsite != null)
                {
                }
                this._Txtwebsite = value;
                if (this._Txtwebsite != null)
                {
                }
            }
        }

        protected virtual TextBox Txtzipcod
        {
            get
            {
                return this._Txtzipcod;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtzipcod != null)
                {
                }
                this._Txtzipcod = value;
                if (this._Txtzipcod != null)
                {
                }
            }
        }

        protected virtual TextBox Txtzs
        {
            get
            {
                return this._Txtzs;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._Txtzs != null)
                {
                }
                this._Txtzs = value;
                if (this._Txtzs != null)
                {
                }
            }
        }

        protected virtual TextBox txtzscore
        {
            get
            {
                return this._txtzscore;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._txtzscore != null)
                {
                }
                this._txtzscore = value;
                if (this._txtzscore != null)
                {
                }
            }
        }
    }
}

